﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH4_2102A.Shopping.DTO
{
    /// <summary>
    /// 服务器响应结果DTO
    /// </summary>
    public class ResponseResultDto
    {
        public ResponseStateCode Code { get; set; } = ResponseStateCode.Success;
        public string Message { get; set; } = "操作成功";
        public dynamic Data { get; set; }
    }

    public enum ResponseStateCode
    {
        Success =200,
        Failed = 500,

        [Display(Name="无效参数")]
        Err_ValidParam = -300,
    }
}
